import serveAxios from "../index";
//登录
export const dl = (params) => {
    return serveAxios({
        method: 'GET',
        url: '/UserManage',
        params

    })
}
//修改密码
export const xgmm = (data) => {
    return serveAxios({
        method: 'POST',
        url: '/UserManage',
        data

    })
}

// 首页巴拉素 获取分站  box1
export const BlsFenZhanCount = (params) => {
    return serveAxios({
        method: 'GET',
        url: '/SubStationInfos',
        params

    })
}
// 首页巴拉素 设备基本信息 box2 
export const BlsSheBeiJiBenXinXi = () => {
    return serveAxios({
        method: 'GET',
        url: '/EquipmentBasicInfo',
    })
}
// 首页巴拉素  实时信息 box3 
export const BlsShiShiXinXi = (params) => {
    return serveAxios({
        method: 'GET',
        url: '/EquipmentBasicInfo',
        params
    })
}
// 首页巴拉素  实时信息 柱状图报警
export const BlsSheBeiBaoJingTongJi = (params) => {
    return serveAxios({
        method: 'GET',
        url: '/EquipmentBasicInfo',
        params
    })
}
// 首页巴拉素  实时信息 box5 
export const BlsSheShiShiXinXiDaoXu = (params) => {
    return serveAxios({
        method: 'GET',
        url: '/EquipmentBasicInfo',
        params
    })
}
// 首页巴拉素  实时信息  几层几号
export const BlsHaoMaAndValue = (params) => {
    return serveAxios({
        method: 'GET',
        url: '/EquipmentBasicInfo',
        params
    })
}




// 获取安装基点
export const HuoQuAnZhuangJiDian = (params) => {
    return serveAxios({
        method: 'GET',
        url: '/FaceInformations',
        params

    })
}
// 通过传感器类型 返回安装基点
export const TypeHuoQuAnZhuangJiDian = (params) => {
    return serveAxios({
        method: 'GET',
        url: '/ReturnRoadway',
        params

    })
}

// 首页金川 获取分站数量
export const FenZhanCount = () => {
    return serveAxios({
        method: 'GET',
        url: '/GetFZStatus',
    })
}
// 首页传感器保存位置
export const ShouyeChuanGanQiImgWeiZhiBaoCun = (data) => {
    return serveAxios({
        method: 'POST',
        url: '/SensorRealTimeDataTable',
        data
    })
}

// 首页  cad显示传感器
export const ShouyeChuanGanQiImg = (params) => {
    return serveAxios({
        method: 'GET',
        url: '/SensorRealTimeDataTable',
        params
    })
}

// 首页 左1  根据SEL 工作面 查询 掘进和回采
export const ShouyeHuiCaiAndJueJin = (params) => {
    return serveAxios({
        method: 'GET',
        url: '/DrivingStopeFace',
        params
    })
}

// 首页 左3  综合预警 顶板所有传感器每天的报警
export const ShouyeZongHeYuJing = () => {
    return serveAxios({
        method: 'GET',
        url: '/GetAlarmCount',
    })
}

// 首页 有 1  2 3  4 全部折线
export const ShouyeZongRight = () => {
    return serveAxios({
        method: 'GET',
        url: '/AllReal',
    })
}
// 首页 有 1  2 3  4 全部折线
export const ShouyeZongRightTWO = (params) => {
    return serveAxios({
        method: 'GET',
        url: '/AllReal',
        params
    })
}

//  参数设置  系统设置 拉取数据
export const xitonglaqushuju = () => {
    return serveAxios({
        method: 'GET',
        url: '/SystemSetr/Get',
        // 参数
    })
}


// 顶板  设配 配置 测点信息 拉取列表
export const dingbancedianxinxilist = () => {
    return serveAxios({
        method: 'GET',
        url: '/SensorInstallInfo',
        // params: { id:data.ID }
        // data
    })
}

// 顶板设备配置   分站信息  模糊查询
export const dingbanshebeipeizhimohuchaxun = (params) => {
    return serveAxios({
        method: 'POST',
        url: '/GetLocation',
        params
    })
}

// 顶板  设配 配置 测点信息  删除
export const dingbancedianxinxidel = (params) => {
    return serveAxios({
        method: 'DELETE',
        url: '/SensorInstallInfo',
        params
        // data
    })
}

// 顶板  设配 配置 测点信息 添加
export const dingbancedianxinxiadd = (data) => {
    return serveAxios({
        method: 'POST',
        url: '/SensorInstallInfo',
        // params: { id:data.ID }
        data
    })
}
// 顶板  设配 配置 测点信息  修改
export const dingbancedianxinxixiugai = (data) => {
    return serveAxios({
        method: 'PUT',
        url: '/SensorInstallInfo',
        params: { id: data.installInfoId },
        data
    })
}

//  顶板 添加测点  弹出框  安装基点
export const dingbanaddcedianfenzhananzhuangjidian = (params) => {
    return serveAxios({
        method: 'GET',
        url: '/SensorInstallInfo',
        // data: { id:params.ID }
        params

    })
}

//  顶板 添加测点  弹出框  分站IP下拉框
export const dingbanaddcedianfenzhanip = (params) => {
    return serveAxios({
        method: 'GET',
        url: '/SensorInstallInfo',
        // data: { id:params.ID }
        params

    })
}
//  顶板 添加测点  根据工作面 拉取上下顺槽名称
export const dingbanaddcedianshangxiashuncao = (params) => {
    return serveAxios({
        method: 'GET',
        url: '/FaceInformations',
        // data: { id:params.ID }
        params

    })
}

// 顶板  设配 配置 测点信息  弹出框 下拉 查询类型
export const dingbancedianxinxitanchuleixing = (params) => {
    return serveAxios({
        method: 'GET',
        url: '/SensorInstallInfo',
        params
        // data
    })
}
// 顶板  设配 配置 测点信息  弹出框 模糊查询类型
export const dingbancedianxinxitanchumohuchaxun = (params) => {
    return serveAxios({
        method: 'GET',
        url: '/SensorInstallInfo',
        params
        // data
    })
}

// 顶板  设配 配置 测点信息  弹出框 实测数值
export const dingbancedianxinxitanchushice = (params) => {
    return serveAxios({
        method: 'GET',
        url: '/SensorInstallInfo',
        params
        // data
    })
}
// 顶板  设配 配置 测点信息  弹出框 计算截距
export const dingbancedianxinxitanchujisuanjieju = (params) => {
    return serveAxios({
        method: 'GET',
        url: '/SensorInstallInfo',
        params
        // data
    })
}

// 顶板  设配 配置 传感器表 拉去
export const dingbanchuanganqibiao = () => {
    return serveAxios({
        method: 'GET',
        url: '/SensorFactoryInfoS',
    })
}
// 顶板  设配 配置 传感器表 添加
export const dingbanchuanganqibiaoadd = (data) => {
    return serveAxios({
        method: 'POST',
        url: '/SensorFactoryInfos',
        data
    })
}
// 顶板  设配 配置 传感器表 修改
export const dingbanchuanganqibiaoxiugai = (data) => {
    return serveAxios({
        method: 'PUT',
        url: '/SensorFactoryInfos',
        data,
        params: { id: data.ID }
    })
}
// 顶板  设配 配置 传感器表 删除
export const dingbanchuanganqibiaoshanchu = (data) => {
    return serveAxios({
        method: 'DELETE',
        url: '/SensorFactoryInfos/' + data.id,
        // params: { id:data.ID }
        data
    })
}
// 顶板  设配 配置 传感器表 导入
export const dingbanchuanganqibiadaoru = () => {
    return serveAxios({
        method: 'GET',
        url: '/daoruExcel',

    })
}
// 顶板  设配 配置 传感器表 删除所有传感器表内容
export const dingbanchuanganqibiadaodelquanbu = () => {
    return serveAxios({
        method: 'DELETE',
        url: '/daoruExcel',
    })
}

// 顶板设备配置   安装基点 拉取 
export const dingbanshebeianzhuangjidianadd = () => {
    return serveAxios({
        method: 'GET',
        url: '/Substationinformation',

    })
}
// 顶板设备配置   安装基点 修改 
export const dingbananzhuangjidianxiugai = (data) => {
    return serveAxios({
        method: 'PUT',
        url: '/Substationinformation',
        // data: { id:params.ID }
        data,
        params: { id: data.ID }
    })
}
// 顶板设备配置   安装基点 删除 
export const dingbananzhuangjidiandell = (params) => {
    return serveAxios({
        method: 'DELETE',
        url: '/Substationinformation',
        // data: { id:params.ID }
        params
    })
}

// 顶板设备配置   传感器  添加 
export const dingbananzhuangjidianadd = (data) => {
    return serveAxios({
        method: 'POST',
        url: '/Substationinformation',
        // data: { id:params.ID }
        data
    })
}

//  顶板 安装基点 
export const dingbananzhuangjidianleixing = (params) => {
    return serveAxios({
        method: 'GET',
        url: '/Substationinformation',
        // data: { id:params.ID }
        params

    })
}

// 顶板设备配置   传感器l类型配置  添加 
export const dingbanchuanganqipeizhiadd = (data) => {
    return serveAxios({
        method: 'POST',
        url: '/SensortypeNew',
        // data: { id:params.ID }
        data
    })
}
// 顶板设备配置   传感器l类型配置 修改 
export const dingbanchuanganqixiygai = (data) => {
    return serveAxios({
        method: 'PUT',
        url: '/SensortypeNew',
        // data: { id:params.ID }
        data,
        params: { id: data.ID }
    })
}

// 顶板设备配置   传感器l类型配置  删除 
export const dingbanchuanganqishanchu = (data) => {
    return serveAxios({
        method: 'DELETE',
        url: '/SensortypeNew/' + data.id,

    })
}
// 顶板设备配置   传感器l类型配置 拉取 
export const dingbanshebeichuanganqipeizhilist = () => {
    return serveAxios({
        method: 'GET',
        url: '/SensortypeNew',

    })
}
// 顶板设备配置   分站信息  list 
export const dingbanshebeipeizhi = () => {
    return serveAxios({
        method: 'GET',
        url: '/SubStationInfos',
        // params: { id:data.ID }
        // data 
    })
}
// 顶板设备配置   分站信息  删除 
export const dingbanshebeipeizhishanchu = (data) => {
    return serveAxios({
        method: 'DELETE',
        url: '/SubStationInfos/' + data.id,
        // data: { id:params.ID }
        data
    })
}
// 顶板设备配置   分站信息  添加 
export const dingbanfenzhanpeizhiadd = (data) => {
    return serveAxios({
        method: 'POST',
        url: '/SubStationInfos',
        // data: { id:params.ID }
        data
    })
}
// 顶板设备配置   分站信息  修改 
export const dingbanfenzhanpeizhixiugai = (data) => {
    return serveAxios({
        method: 'PUT',
        url: '/SubStationInfos',
        // data: { id:params.ID }
        data,
        params: { id: data.ID }
    })
}
// 顶板设备配置  工作面  list 
export const dingbanpeizhigongzuomianlist = () => {
    return serveAxios({
        method: 'GET',
        url: '/FaceInformations',
    })
}

// 顶板设备配置   工作面  删除 
export const dingbanpeizhigongzuomiandel = (data) => {
    return serveAxios({
        method: 'DELETE',
        url: '/FaceInformations/' + data.id,
        // data: { id:params.ID }
        data
    })
}
// 顶板设备配置   工作面  添加 
export const dingbanpeizhigongzuomianadd = (data) => {
    return serveAxios({
        method: 'POST',
        url: '/FaceInformations',
        // data: { id:params.ID }
        data
    })
}

// 顶板设备配置   工作面  修改 
export const dingbanpeizhigongzuomianxiu = (data) => {
    return serveAxios({
        method: 'PUT',
        url: '/FaceInformations',
        // data: { id:params.ID }
        data,
        params: { id: data.ID }
    })
}

// 顶板   实时信息 
export const dingbanshishixinxi = (params) => {
    return serveAxios({
        method: 'GET',
        url: '/SensorRealTimeDataTable',
        params
    })
}
// 顶板   实时信息 
export const dingbanshishixinxicha = (params) => {
    return serveAxios({
        method: 'GET',
        url: '/SensorRealTimeDataTable',
        params
    })
}

// 顶板    实时信息  柱状图 折线图 
export const dingbanshishixinxicha1 = (params) => {
    return serveAxios({
        method: 'GET',
        url: '/SensorRealTimeDataTable',
        params
    })
}

// 顶板   实时信息  柱状图 折线图
export const shishixinxizhuzhuangtuandzhxiantu = (params) => {
    return serveAxios({
        method: 'GET',
        url: '/SensorRealTimeDataTable',
        params
    })
}

// 顶板   报警信息 
export const dingbanbaojingbaojingType = (params) => {
    return serveAxios({
        method: 'GET',
        url: '/AlarmInfos',
        params
    })
}

// 顶板   历史信息 
export const dingbanlishixinxiType = (data) => {
    return serveAxios({
        method: 'POST',
        url: '/HistoryData_1?a={a}',
        data
    })
}

//顶板 历史信息 根据传感器类型 返回传感器安装位置
export const dingbanlishixinxiTypefanhuiweizhi = (params) => {
    return serveAxios({
        method: 'GET',
        url: '/SensorHistory',
        params
    })
}
//顶板 历史信息 根据上下顺槽 返回安装位置
export const dingbanlishixinxiScChaWeiZhi = (params) => {
    return serveAxios({
        method: 'GET',
        url: '/HistoryData_1',
        params
    })
}
// 根据传感器类型返回位置
export const lishixinxiChaWeiZhi = (params) => {
    return serveAxios({
        method: 'GET',
        url: '/HistoryData_1',
        params
    })
}

// 顶板   日报 
export const dingbanbaobiaori = (data) => {
    return serveAxios({
        method: 'POST',
        url: '/Report?a={1}',
        data
    })
}
// 顶板   月
export const dingbanbaobiaoyue = (data) => {
    return serveAxios({
        method: 'POST',
        url: '/Report?b={1}',
        data
    })
}
// 顶板   周
export const dingbanbaobiaozhou = (data) => {
    return serveAxios({
        method: 'POST',
        url: '/Report?c={1}',
        data
    })
}


// 顶板 设备配置  标题 获取
export const WbeTitleList = () => {
    return serveAxios({
        method: 'GET',
        url: '/Title',
    })
}
// 顶板 设备配置  标题 添加
export const WedTitleAdd = (data) => {
    return serveAxios({
        method: 'POST',
        url: '/Title',
        data
    })
}

// 顶板 设备配置  柱状图
export const ZhuZhuangTuShuJuList = () => {
    return serveAxios({
        method: 'GET',
        url: '/SysInfos',
    })
}
// 顶板 设备配置  柱状图 添加
export const ZhuZhuangTuShuJuAdd = (data) => {
    return serveAxios({
        method: 'PUT',
        url: '/SysInfos',
        data
    })
}
// 顶板 首页  获取分站 正常 异常
export const DingBanHomePageFanZhanZhengZhengChangandYiChang = (params) => {
    return serveAxios({
        method: 'GET',
        url: '/SubStationInfos',
        params
    })
}

// 顶板 传感器 总数量 异常 报警 离线 正常
export const ShouYeChuanGanQicount = (params) => {
    return serveAxios({
        method: 'GET',
        url: '/SensorRealTimeDataTable',
        params
    })
}

// 顶板 实时信息 进尺 列表
export const jinchiliebiao = () => {
    return serveAxios({
        method: 'GET',
        url: '/DailyFootage',
    })
}

// 顶板 实时信息 进尺 删除
export const jinchidel = (data) => {
    return serveAxios({
        method: 'DELETE',
        url: '/DailyFootage/' + data.id,
        data
    })
}

// 顶板 实时信息 进尺  添加 
export const jinchiadd = (data) => {
    return serveAxios({
        method: 'POST',
        url: '/DailyFootage',
        // data: { id:params.ID }
        data
    })
}

// 顶板 实时信息 进尺  修改 
export const jinchixiu = (data) => {
    return serveAxios({
        method: 'PUT',
        url: '/DailyFootage',
        // data: { id:params.ID }
        data,
        params: { id: data.ID }
    })
}

//系统管理   通讯测试 
export const xiaweiji = () => {
    return serveAxios({
        method: 'GET',
        url: '/PingIP',

    })
}

//系统管理   保存手机号 
export const addcellPhoneNumber = (data) => {
    return serveAxios({
        method: 'POST',
        url: `/Receiver`,
        data
    })
}